import type { PageParams } from "@/types/global";
import type { HotResult } from "@/types/hot";
import { http } from "@/utils/http";

// 热门推荐请求参数类型
type HotParams = PageParams & { subType?: string }
/**
 *
 * @param url 地址
 * @param data 请求参数
 * @returns
 */
export const getHotRecommendAPI = (url: string, data?: HotParams) => {
  return http<HotResult>({
    method: 'GET',
    url,
    data,
  })
}
